/**
 * 判断不固定的多个参数都不为null 或者 undefined,并且不为数字
 * @param  {...any} params 
 * @returns 
 */
function checkParams(...params) {
    return params.every(param => param !== null && param !== undefined && typeof param === 'number');
}
/**
 * 只要有一个不为1，就返回false
 * @param  {...any} params 
 * @returns 
 */
function checkParamsNotTrue(...params) {
    return params.some(param => param != 1);
}

function arrayToStringWithNull(array) {
    return array.map(item => item === null || item==='' ? 'null' : item).join(',');
}

function maxValue(p1,p2){
    let val=Math.max(p1,p2);
    return Math.round(val * 100) / 100;
}

/**
 * 获取自评的总分数
 * @param {*} pfItemList 
 * @returns 
 */
function getTotalPfScore(pfItemList) {
    let val= pfItemList.reduce(function (total, item) {
        // 转换为数字并检查是否是有效数字
        var score = Number(item.pfScore);
        return (isNaN(score) ? total : total + score);
    }, 0);
    return maxValue(val,0);
}
/**
 * 获取核验的总分数
 * @param {*} pfItemList 
 * @returns 
 */
function getTotalHyScore(pfItemList) {
    let val= pfItemList.reduce(function (total, item) {
        // 转换为数字并检查是否是有效数字
        var score = Number(item.hyScore);
        return (isNaN(score) ? total : total + score);
    }, 0);
    return maxValue(val,0);
}


/**************** 制度保障 ******************** */
function eval_1(p1,p2,p3,p4,p5) {
    if(checkParamsNotTrue(p1,p2,p3,p4)) return 0;
    if(!checkParams(p5)) return 0;
    return maxValue(p5,0);
}

function eval_2(p1,p2,p3,p4,p5,p6,p7,p8,p9) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p6,p7,p8,p9)) return 0;
    let result=p9;
    if(checkParamsNotTrue(p2)) result=result-1;
    if(checkParamsNotTrue(p3)) result=result-1;
    if(checkParamsNotTrue(p4)) result=result-1;
    if(checkParamsNotTrue(p5)) result=result-1;
    result=result-p6*0.5-p7*0.5-p8*0.5;
    return maxValue(result,0);
}

function eval_3(p1,p2,p3,p4) {
    if(checkParamsNotTrue(p1,p2)) return 0;
    if(!checkParams(p3,p4)) return 0;
    return maxValue(p4- p3*0.5,0)
}

function eval_4(p1,p2,p3,p4,p5,p6,p7,p8) {
    if(checkParamsNotTrue(p1)) return 0;
    let result=p8;
    if(checkParamsNotTrue(p2)) result=result-0.5;
    if(checkParamsNotTrue(p3)) result=result-0.5;
    if(checkParamsNotTrue(p4)) result=result-0.5;
    if(checkParamsNotTrue(p5)) result=result-0.5;
    if(checkParamsNotTrue(p6)) result=result-0.5;
    if(checkParamsNotTrue(p7)) result=result-0.5;
    return maxValue(result,0)
}

/**************** 信息化系统（统建） ******************** */
function eval_5(p1,p2,p3) {
    if(checkParamsNotTrue(p1)&&checkParams(p3)) return maxValue(p3*0.6,0);
    if(!checkParams(p2,p3)) return 0;
    if(p2<90) return 0;
    else if(p2<94&&p2>=90) return maxValue(p3-10,0);
    else if(p2<98&&p2>=94) return maxValue(p3-5,0);
    else return p3;
}
function eval_6(p1,p2,p3,p4,p5,p6,p7) {
    if(checkParamsNotTrue(p1)&&checkParams(p7)) return maxValue(p7*0.6,0);
    if(!checkParams(p2,p3,p4,p5,p6,p7)) return 0;
    let result=p7;
    if(p2<90) result=result-(90-p2);
    if(p3<90) result=result-(90-p3);
    result=result-p4;
    if(p5<95) result=result-(95-p5);
    if(p6<95) result=result-(95-p6);
    return maxValue(result,0)
}
function eval_7(p1,p2,p3,p4,p5,p6,p7) {
    if(checkParamsNotTrue(p1)&&checkParams(p7)) return maxValue(p7*0.6,0);
    if(!checkParams(p2,p3,p4,p5,p6,p7)) return 0;
    let result=p7;
    if(p2<90) result=result-(90-p2);
    if(p3<90) result=result-(90-p3);
    result=result-p4;
    if(p5<95) result=result-(95-p5);
    if(p6<95) result=result-(95-p6);
    return maxValue(result,0)
}
function eval_8(p1,p2,p3,p4,p5,p6,p7) {
    if(checkParamsNotTrue(p1)&&checkParams(p7)) return maxValue(p7*0.6,0);
    if(!checkParams(p2,p3,p4,p5,p6,p7)) return 0;
    let result=p7;
    if(p2<90) result=result-(90-p2);
    if(p3<90) result=result-(90-p3);
    result=result-p4;
    if(p5<95) result=result-(95-p5);
    if(p6<95) result=result-(95-p6);
    return maxValue(result,0)
}
function eval_9(p1,p2,p3,p4,p5,p6,p7) {
    if(checkParamsNotTrue(p1)&&checkParams(p7)) return maxValue(p7*0.6,0);
    if(!checkParams(p2,p3,p4,p5,p6,p7)) return 0;
    let result=p7;
    if(p2<90) result=result-(90-p2);
    if(p3<90) result=result-(90-p3);
    result=result-p4;
    if(p5<95) result=result-(95-p5);
    if(p6<95) result=result-(95-p6);
    return maxValue(result,0)
}
function eval_10(p1,p2,p3) {
    if(checkParamsNotTrue(p1)&&checkParams(p3)) return maxValue(p3*0.6,0);
    if(!checkParams(p2,p3)) return 0;
    return maxValue(p3-p2*2,0);
}
function eval_11(p1,p2,p3,p4,p5,p6,p7) {
    if(checkParamsNotTrue(p1)&&checkParams(p7)) return maxValue(p7*0.6,0);
    if(!checkParams(p2,p3,p4,p5,p6,p7)) return 0;
    let result=p7;
    if(p2<90) result=result-(90-p2);
    if(p3<90) result=result-(90-p3);
    result=result-p4;
    if(p5<95) result=result-(95-p5);
    if(p6<95) result=result-(95-p6);
    return maxValue(result,0)
}
/**************** 信息基础设施 ******************** */
function eval_12(p1,p2,p3,p4,p5,p6) {
    if(!checkParams(p1,p2,p3,p4,p5,p6)) return 0;
    let result=p6;
    if(p1<90) return 0;
    if(p2<90) return 0;
    if(p3<90) return 0;
    result=result-p4-p5*4;
    return maxValue(result,0)
}
function eval_13(p1,p2) {
    if(!checkParams(p1,p2)) return 0;
    let result=p2;
    if(p1<90) return 0;
    result=result-(100-p1)*0.5;
    return maxValue(result,0)
}
function eval_14(p1,p2,p3,p4) {
    if(!checkParams(p1,p2,p3,p4)) return 0;
    let result=p4;
    if(p1>=90) return 0;
    result=result-p2-p3;
    return maxValue(result,0)
}
function eval_15(p1,p2,p3,p4,p5,p6) {
    if(!checkParams(p1)) return 0;
    if(p1<95) return 0;
    if(checkParamsNotTrue(p2)) return 0;
    if(!checkParams(p3,p4,p5,p6)) return 0;
    let result=p6;
    result=result-p3-p4*2-p5*4;
    return maxValue(result,0)
}
function eval_16(p1,p2,p3,p4,p5,p6,p7) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3,p4,p5,p6,p7)) return 0;
    let result=p7;
    result=result-p2*2-p3*2-p4*2-p5*4-p6*4;
    return maxValue(result,0)
}
function eval_17(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;
    let result=p3;
    result=result-p2*2;
    return maxValue(result,0)
}
function eval_18(p1,p2,p3,p4) {
    if(!checkParams(p1)) return 0;
    if(p1<90) return 0;
    if(!checkParams(p2,p3,p4)) return 0;
    let result=p4;
    result=result-p2-p3;
    return maxValue(result,0)
}
function eval_19(p1,p2,p3,p4) {
    if(checkParamsNotTrue(p1)) return 0;
    if(checkParamsNotTrue(p2)) return 0;
    if(!checkParams(p3,p4)) return 0;
    let result=p4-p3;
    return maxValue(result,0)
}
function eval_20(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;
    let result=p3;
    if(p2<20)  result=result-(20-p2);
    if(p2>80)  result=result-(p2-80);
    return maxValue(result,0)
}
function eval_21(p1,p2,p3,p4) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3,p4)) return 0;
    let result=p4;
    if(checkParamsNotTrue(p2)) result=result-2
    if(checkParamsNotTrue(p3)) result=result-2
    return maxValue(result,0)
}
function eval_22(p1,p2,p3,p4,p5) {
    if(!checkParams(p1)||p1<95) return 0;
    if(!checkParams(p2,p3,p4,p5)) return 0;
    let result=p5-p2*2-p3*2-p4*2;
    return maxValue(result,0)
}
function eval_23(p1,p2,p3,p4) {
    if(checkParamsNotTrue(p1)) return 0;
    if(checkParamsNotTrue(p2)) return 0;
    if(checkParamsNotTrue(p3)) return 0;
    return p4;
}
/**************** 地质保障系统 ******************** */
function eval_24(p1,p2) {
    if(!checkParams(p1,p2)) return 0;
    return maxValue(p2-p1*5,0);
}
function eval_25(p1,p2,p3,p4) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2)||p2<90) return 0;
    if(!checkParams(p3,p4)) return 0;
    return maxValue(p4-p3*2,0);
}
function eval_26(p1,p2,p3,p4,p5) {
    if(checkParamsNotTrue(p2)) return 0;
    if(checkParamsNotTrue(p4)) return 0;
    if(!checkParams(p1,p3,p5)) return 0;
    return maxValue(p5-p3*2-p1*2,0);
}
function eval_27(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;
    let result=p3-p2;
    return maxValue(result,0)
}
/**************** 掘进系统 ******************** */
function eval_28(p1,p2,p3,p4) {
    if(checkParamsNotTrue(p2,p3)) return 0;
    if(!checkParams(p1,p4)) return 0;
    let result=p4;
    if(p1<60) result=result-(60-p1);
    return maxValue(result,0)
}
function eval_29(p1,p2) {
    if(!checkParams(p1,p2)) return 0;
    let result=p2;
    if(p1<60) result=result-(60-p1);
    return maxValue(result,0)
}
function eval_30(p1,p2,p3,p4) {
    if(checkParamsNotTrue(p3)) return 0;
    if(!checkParams(p1,p4)) return 0;
    if(p1<90) return 0;
    let result=p4;
    if(checkParamsNotTrue(p2)) result=result-2;
    return maxValue(result,0)
}
function eval_31(p1,p2,p3,p4) {
    if(!checkParams(p1)) return 0;
    if(p1<90) return 0;
    if(checkParams(p2,p3,p4)) return 0;
    let result=p4;
    result=result-p2*2-p3*2;
    return maxValue(result,0)
}
function eval_32(p1,p2) {
    if(!checkParams(p1,p2)) return 0;
    let result=p2;
    if(p1<90) result=result-(90-p1)*2;
    return maxValue(result,0)
}
function eval_33(p1,p2,p3) {
    if(!checkParams(p1)) return 0;
    if(p1<90) return 0;
    if(!checkParams(p2,p3)) return 0;
    let result=p3;
    result=result-p2*2;
    return maxValue(result,0)
}
function eval_34(p1,p2) {
    if(!checkParams(p1,p2)) return 0;
    let result=p2;
    if(p1>10)  return 0;
    result=result-(10-p1)*2;
    return maxValue(result,0)
}
function eval_35(p1,p2,p3,p4,p5,p6,p7) {
    if(!checkParams(p5,p6,p7)) return 0;
    let result=p7;
    if(checkParamsNotTrue(p6)) return 0;
    if(checkParamsNotTrue(p5)) result=result-3;
    return maxValue(result,0)
}
function eval_36(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;
    let result=p3;
    result=result-p2;
    return maxValue(result,0)
}

/**************** 采煤系统 ******************** */
function eval_37(p1,p2,p3,p4) {
    if(checkParamsNotTrue(p2,p3)) return 0;
    if(!checkParams(p1,p4)) return 0;
    let result=p4;
    if(p1<80) result=result-(80-p1);
    return maxValue(result,0)
}
function eval_38(p1,p2,p3,p4) {
    if(checkParamsNotTrue(p2,p3)) return 0;
    if(!checkParams(p1,p4)) return 0;
    let result=p4;
    if(p1<85) result=result-(85-p1);
    return maxValue(result,0)
}
function eval_39(p1,p2,p3,p4,p5,p6) {
    if(checkParamsNotTrue(p1,p2)) return 0;
    if(!checkParams(p3,p4,p5,p6)) return 0;
    let result=p6;
    if(checkParamsNotTrue(p3)) result=result-2;
    if(checkParamsNotTrue(p4)) result=result-2;
    if(checkParamsNotTrue(p5)) result=result-2;
    return maxValue(result,0)
}
function eval_40(p1,p2,p3,p4) {
    if(!checkParams(p1)) return 0;
    if(p1<90) return 0;
    if(!checkParams(p2,p3,p4)) return 0;
    let result=p4-p3-p2;
    return maxValue(result,0)
}
function eval_41(p1,p2) {
    if(!checkParams(p1,p2)) return 0;
    let result=p2;
    if(p1<80)  return 0;
    result=result-(100-p1)*2;
    return maxValue(result,0)
}
function eval_42(p1,p2,p3,p4,p5) {
    if(!checkParams(p1)) return 0;
    if(p1<95) return 0;
    if(!checkParams(p2,p3,p4,p5)) return 0;
    let result=p5-p4-p3-p2;
    return maxValue(result,0)
}
function eval_43(p1,p2,p3,p4,p5,p6,p7,p8,p9) {
    if(!checkParams(p1,p5)) return 0;
    if(p1<85) return 0;
    let result=p9;
    if(checkParamsNotTrue(p2)) result=result-1;
    if(checkParamsNotTrue(p3)) result=result-1;
    if(checkParamsNotTrue(p4)) result=result-1;
    if(checkParamsNotTrue(p5)) result=result-1;
    if(checkParamsNotTrue(p6)) result=result-1;
    if(checkParamsNotTrue(p7)) result=result-1;
    if(checkParamsNotTrue(p8)) result=result-1;
    return maxValue(result,0)
}
function eval_44(p1,p2,p3,p4) {
    if(!checkParams(p3,p4)) return 0;
    if(p3>=3) return 0;
    let result=p4-p3*2;
    return maxValue(result,0)
}
function eval_45(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}

/**************** 主煤流 ******************** */
function eval_46(p1,p2,p3) {
    if(!checkParams(p1)) return 0;
    if(p1<80) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2*2;
    return maxValue(result,0)
}
function eval_47(p1,p2,p3) {
    if(checkParamsNotTrue(p1,p2)) return 0;
    if(!checkParams(p3)) return 0;    
    return maxValue(p3,0)
}
function eval_48(p1,p2,p3,p4,p5) {
    if(!checkParams(p5)) return 0;
    if(checkParamsNotTrue(p1)) return maxValue(p5*0.6,0);
    if(checkParamsNotTrue(p4)) return 0;
    let result=p5;
    if(checkParamsNotTrue(p2)) result=result-3;
    if(!checkParams(p3)) return 0;
    result=result-p3*2;
    return maxValue(result,0)
}
function eval_49(p1,p2,p3,p4) {
    if(!checkParams(p1)) return 0;
    if(p1<90) return 0;
    if(!checkParams(p2,p3,p4)) return 0;
    let result=p4-p2*3-p3*5;
    return maxValue(result,0)
}
function eval_50(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11) {
    if(!checkParams(p1,p11)) return 0;
    if(p1>5||p1<-5) return 0;
    let result=p11;
    if(checkParamsNotTrue(p2)) result=result-2;
    if(checkParamsNotTrue(p3)) result=result-2;
    if(checkParamsNotTrue(p4)) result=result-2;
    if(checkParamsNotTrue(p5)) result=result-2;
    if(checkParamsNotTrue(p6)) result=result-2;
    if(checkParamsNotTrue(p7)) result=result-2;
    if(checkParamsNotTrue(p8)) result=result-2;
    if(checkParamsNotTrue(p9)) result=result-2;
    if(checkParamsNotTrue(p10)) result=result-2;
    return maxValue(result,0)
}
function eval_51(p1,p2,p3,p4,p5,p6) {
    if(!checkParams(p6)) return 0;
    if(checkParamsNotTrue(p1)) return maxValue(p6*0.6,0);
    if(checkParamsNotTrue(p2)) return 0;
    if(!checkParams(p3)) return 0;
    let result=p6;
    if(p3<90) result=result-1;
    if(checkParamsNotTrue(p4)) result=result-1;
    if(checkParamsNotTrue(p5)) result=result-4;
    return maxValue(result,0)
}
function eval_52(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
/**************** 辅助运输 ******************** */
function eval_53(p1,p2,p3) {
    if(!checkParams(p1)) return 0;
    if(p1<95) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
function eval_54(p1,p2,p3) {
    if(!checkParams(p1)) return 0;
    if(p1<90) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
function eval_55(p1,p2,p3,p4,p5,p6,p7,p8,p9) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p9)) return 0;
    let result =p9;
    result=result-p2*4;
    if(checkParamsNotTrue(p3)) result=result-1;
    if(checkParamsNotTrue(p4)) result=result-1;
    if(checkParamsNotTrue(p5)) result=result-1;
    if(checkParamsNotTrue(p6)) result=result-1;
    if(checkParamsNotTrue(p7)) result=result-1;
    if(checkParamsNotTrue(p8)) result=result-1;
    return maxValue(result,0)
}
function eval_56(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
function eval_57(p1,p2) {
    if(!checkParams(p1,p2)) return 0;    
    let result=p2-p1*2;
    return maxValue(result,0)
}
function eval_58(p1,p2,p3,p4,p5,p6,p7) {
    if(!checkParams(p1)) return 0;
    if(p1<95) return 0;
    if(!checkParams(p2)) return 0;
    if(p2<95) return 0;
    if(!checkParams(p3)) return 0;
    if(p3<95) return 0;
    if(!checkParams(p4,p5,p6,p7)) return 0;
    let result =p7-p4*2-p5*2-p6*2;
    return maxValue(result,0)
}
function eval_59(p1,p2){
    return p2*0.6;
}
function eval_60(p1,p2){
    return p2*0.6;
}
function eval_61(p1,p2){
    return p2*0.6;
}

function eval_62(p1,p2,p3,p4,p5,p6) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p6)) return 0;
    let result=p6;
    if(checkParamsNotTrue(p2)) result=result-2;
    if(checkParamsNotTrue(p3)) result=result-2;
    if(checkParamsNotTrue(p4)) result=result-2;
    if(checkParamsNotTrue(p5)) result=result-2;
    return maxValue(result,0)
}
function eval_63(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
/**************** 通风与压风 ******************** */
function eval_64(p1,p2,p3,p4,p5,p6) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p6)) return 0;
    let result=p6;
    if(checkParamsNotTrue(p2)) result=result-2;
    if(checkParamsNotTrue(p3)) result=result-2;
    if(checkParamsNotTrue(p4)) result=result-2;
    if(checkParamsNotTrue(p5)) result=result-2;
    return maxValue(result,0)
}
function eval_65(p1,p2,p3,p4,p5,p6,p7) {
    if(checkParamsNotTrue(p1)) return 0;
    if(checkParamsNotTrue(p2)) return 0;
    if(!checkParams(p7)) return 0;
    let result=p7;
    if(checkParamsNotTrue(p3)) result=result-3;
    if(checkParamsNotTrue(p4)) result=result-3;
    if(checkParamsNotTrue(p5)) result=result-3;
    if(checkParamsNotTrue(p6)) result=result-3;
    return maxValue(result,0)
}
function eval_66(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2*2;
    return maxValue(result,0)
}
function eval_67(p1,p2,p3,p4) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3,p4)) return 0;    
    let result=p4-p2-p3;
    return maxValue(result,0)
}
function eval_68(p1,p2,p3) {
    if(!checkParams(p1,p3)) return 0;
    if(p1<90) return 0;
    if(!checkParams(p2)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
function eval_69(p1,p2,p3,p4) {
    if(!checkParams(p1)) return 0;
    if(p1<90) return 0;
    if(!checkParams(p2,p3,p4)) return 0;    
    let result=p4-p2*2-p3*5;
    return maxValue(result,0)
}
function eval_70(p1,p2,p3) {
    if(!checkParams(p1,p3)) return 0;
    if(p1<90) return 0;
    if(!checkParams(p2)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
function eval_71(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
/**************** 供电系统 ******************** */
function eval_72(p1,p2) {
    if(!checkParams(p1,p2)) return 0;   
    if(p1>=5) return 0; 
    let result=p2-p1*3;
    return maxValue(result,0)
}
function eval_73(p1,p2,p3) {
    if(!checkParams(p1)) return 0;
    if(p1<95) return 0;
    if(!checkParams(p2,p3)) return 0;
    let result=p3-p2;
    return maxValue(result,0)
}
function eval_74(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p11)) return 0;
    let result=p11;
    if(checkParamsNotTrue(p2)) result=result-1;
    if(checkParamsNotTrue(p3)) result=result-1;
    if(checkParamsNotTrue(p4)) result=result-1;
    if(checkParamsNotTrue(p5)) result=result-1;
    if(checkParamsNotTrue(p6)) result=result-1;
    if(checkParamsNotTrue(p7)) result=result-1;
    if(checkParamsNotTrue(p8)) result=result-1;
    if(checkParamsNotTrue(p9)) result=result-1;
    if(checkParamsNotTrue(p10)) result=result-1;
    return maxValue(result,0)
}
function eval_75(p1,p2) {
    if(!checkParams(p1,p2)) return 0;   
    let result=p2-p1*5;
    return maxValue(result,0)
}
function eval_76(p1,p2) {
    if(!checkParams(p1,p2)) return 0;   
    if(p1<0.9||p1>=1) return 0;
    return p2;
}
function eval_77(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
function eval_78(p1,p2,p3,p4,p5) {
    if(!checkParams(p5)) return 0;
    if(checkParamsNotTrue(p1)) return maxValue(p5*0.6,0);
    if(checkParamsNotTrue(p4)) return 0;
    let result=p5;
    if(checkParamsNotTrue(p2)) result=result-2;  
    if(checkParams(p3)) result=result-p3*2;
    return maxValue(result,0)
}
function eval_79(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
function eval_80(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
/**************** 供排水 ******************** */
function eval_81(p1,p2) {
    if(!checkParams(p1,p2)) return 0;   
    if(p1>=5) return 0; 
    let result=p2-p1*3;
    return maxValue(result,0)
}
function eval_82(p1,p2,p3) {
    if(!checkParams(p1)) return 0;
    if(p1<95) return 0;
    if(!checkParams(p2,p3)) return 0;
    let result=p3-p2*3;
    return maxValue(result,0)
}
function eval_83(p1,p2,p3,p4,p5) {
    if(!checkParams(p5)) return 0;
    if(checkParamsNotTrue(p1)) return 0;
    let result=p5;
    if(checkParamsNotTrue(p2)) result=result-5;  
    if(checkParamsNotTrue(p3)) result=result-1;  
    if(checkParamsNotTrue(p4)) result=result-1;  
    return maxValue(result,0)
}
function eval_84(p1,p2) {
    if(!checkParams(p1,p2)) return 0;   
    let result=p2-p1*5;
    return maxValue(result,0)
}
function eval_85(p1,p2,p3,p4,p5) {
    if(!checkParams(p5)) return 0;
    if(checkParamsNotTrue(p1)) return maxValue(p5*0.6,0);
    if(checkParamsNotTrue(p4)) return 0;
    let result=p5;
    if(checkParamsNotTrue(p2)) result=result-2;  
    if(checkParams(p3)) result=result-p3*2;
    return maxValue(result,0)
}
function eval_86(p1,p2,p3,p4,p5,p6) {
    if(!checkParams(p6)) return 0;
    if(checkParamsNotTrue(p1)) return 0;
    let result=p6;
    if(checkParams(p2)) result=result-p2*5;  
    if(checkParamsNotTrue(p3)) result=result-3;
    if(checkParamsNotTrue(p4)) result=result-3;
    if(!checkParams(p5)) return 0;
    if(p5<=85) result=result-3;
    return maxValue(result,0)
}
function eval_87(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
/**************** 安全监控 ******************** */
function eval_88(p1,p2,p3) {
    if(checkParamsNotTrue(p2)) return 0;
    if(!checkParams(p1,p3)) return 0;    
    let result=p3-p1*3;
    return maxValue(result,0)
}
function eval_89(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p10)) return 0;
    let result=p10;
    if(!checkParams(p2)||p2<90) result=result-3;
    if(!checkParams(p3)||p3<90) result=result-3;
    if(!checkParams(p4)||p4<90) result=result-3;
    if(!checkParams(p5)||p5<90) result=result-3;
    if(!checkParams(p6)||p6<90) result=result-3;
    if(!checkParams(p7)||p7<90) result=result-3;
    if(!checkParams(p8)||p8<90) result=result-3;
    if(!checkParams(p9)||p9<90) result=result-3;
    return maxValue(result,0)
}
function eval_90(p1,p2){
    return p2;
}
function eval_91(p1,p2){
    return p2;
}
function eval_92(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p3)) return 0;    
    let result=p3;
    if(checkParamsNotTrue(p2)) result=result-1;
    return maxValue(result,0)
}
function eval_93(p1,p2,p3) {
    if(checkParamsNotTrue(p2)) return 0;
    if(!checkParams(p1,p3)) return 0;    
    let result=p3-p1;
    return maxValue(result,0)
}
function eval_94(p1,p2,p3,p4) {
    if(!checkParams(p4)) return 0;
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;
    let result=p4-p2-p3;
    return maxValue(result,0)
}
function eval_95(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
/**************** 智能化选煤厂 ******************** */
function eval_96(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17) {
    if(!checkParams(p1,p2,p17)) return 0;
    let result=p17-p1-p2*2;
    if(checkParamsNotTrue(p3)) result=result-2;
    if(checkParamsNotTrue(p4)) result=result-2;
    if(checkParamsNotTrue(p5)) result=result-2;
    if(checkParamsNotTrue(p6)) result=result-2;
    if(checkParamsNotTrue(p7)) result=result-2;
    if(checkParamsNotTrue(p8)) result=result-2;
    if(checkParamsNotTrue(p9)) result=result-2;
    if(checkParamsNotTrue(p10)) result=result-2;
    if(checkParamsNotTrue(p11)) result=result-2;
    if(checkParamsNotTrue(p12)) result=result-2;
    if(checkParamsNotTrue(p13)) result=result-2;
    if(checkParamsNotTrue(p14)) result=result-2;
    if(checkParamsNotTrue(p15)) result=result-2;
    if(checkParamsNotTrue(p16)) result=result-2;
    return maxValue(result,0)
}
function eval_97(p1,p2,p3,p4) {
    if(!checkParams(p4)) return 0;
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;
    let result=p4-p2-p3*5;
    return maxValue(result,0)
}
function eval_98(p1,p2,p3,p4,p5) {
    if(!checkParams(p1)||p1<90) return 0;
    if(!checkParams(p2,p3,p4,p5)) return 0;
    let result=p5-p2-p3*5-p4*2;
    return maxValue(result,0)
}
function eval_99(p1,p2) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2)) return 0;    
    return p2;
}
function eval_100(p1,p2,p3,p4,p5) {
    if(!checkParams(p5)) return 0;
    if(checkParamsNotTrue(p1)) return maxValue(p5*0.6,0);
    if(checkParamsNotTrue(p4)) return 0;
    let result=p5;
    if(checkParamsNotTrue(p2)) result=result-1;  
    if(checkParams(p3)) result=result-p3;
    return maxValue(result,0)
}
function eval_101(p1,p2,p3,p4,p5) {
    if(!checkParams(p1)||p1<95) return 0;
    if(!checkParams(p2,p3,p4,p5)) return 0;  
    let result=p5-p2*2-p3-p4*2;
    return maxValue(result,0)
}
function eval_102(p1,p2,p3) {
    if(checkParamsNotTrue(p2)) return 0;
    if(!checkParams(p1,p3)) return 0;    
    let result=p3-p1;
    return maxValue(result,0)
}
function eval_103(p1,p2) {
    if(!checkParams(p1,p2)) return 0;
    let result=p2-p1;  
    return  maxValue(result,0)
}
function eval_104(p1,p2) {
    if(!checkParams(p1,p2)) return 0;
    let result=p2-p1;
    return  maxValue(result,0)
}
function eval_105(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
function eval_106(p1,p2,p3,p4,p5) {
    if(!checkParams(p5))   return 0;
    let result=p5;
    if(checkParamsNotTrue(p1)) result=result-1;
    if(checkParamsNotTrue(p2)) result=result-1;
    if(checkParamsNotTrue(p3)) result=result-1;
    if(checkParamsNotTrue(p4)) result=result-1;
    return maxValue(result,0)
}
/**************** 智能化园区与经营管理系统 ******************** */
function eval_107(p1,p2,p3,p4,p5,p6,p7,p8) {
    if(!checkParams(p8))   return 0;
    let result=p8;
    if(checkParamsNotTrue(p1)) result=result-3;
    if(checkParamsNotTrue(p2)) result=result-3;
    if(checkParamsNotTrue(p3)) result=result-3;
    if(checkParamsNotTrue(p4)) result=result-3;
    if(checkParamsNotTrue(p5)) result=result-3;
    if(checkParamsNotTrue(p6)) result=result-3;
    if(checkParamsNotTrue(p7)) result=result-3;
    return maxValue(result,0)
}
function eval_108(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2*5;
    return maxValue(result,0)
}
function eval_109(p1,p2) {
    if(!checkParams(p1,p2)) return 0;    
    let result=p2-p1*2;
    return maxValue(result,0)
}
function eval_110(p1,p2,p3,p4) {
    if(!checkParams(p4)) return 0;
    if(checkParamsNotTrue(p1)) return maxValue(p4*0.6,0);
    if(!checkParams(p2)||p2<80) return 0;    
    if(!checkParams(p3)) return 0;
    let result=p4-p3*5;
    return maxValue(result,0)
}
function eval_111(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}
/**************** 综合管控平台 ******************** */
function eval_112(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11) {
    if(!checkParams(p11))   return 0;
    let result=p11;
    if(checkParamsNotTrue(p1)) result=result-2;
    if(checkParamsNotTrue(p2)) result=result-2;
    if(checkParamsNotTrue(p3)) result=result-2;
    if(checkParamsNotTrue(p4)) result=result-2;
    if(checkParamsNotTrue(p5)) result=result-2;
    if(checkParamsNotTrue(p6)) result=result-2;
    if(checkParamsNotTrue(p7)) result=result-2;
    if(checkParamsNotTrue(p8)) result=result-2;
    if(checkParamsNotTrue(p9)) result=result-2;
    if(checkParamsNotTrue(p10)) result=result-2;
    return maxValue(result,0)
}
function eval_113(p1,p2,p3,p4) {
    if(!checkParams(p4))   return 0;
    let result=p4;
    if(checkParamsNotTrue(p1)) return 0;
    if(checkParamsNotTrue(p2)) result=result-2;
    if(checkParamsNotTrue(p3)) result=result-5;
    return maxValue(result,0)
}
function eval_114(p1,p2,p3) {
    if(!checkParams(p3))   return 0;
    let result=p3;
    if(!checkParams(p1)||p1<90) return 0;
    if(checkParams(p2)) result=result-p2*2;
    return maxValue(result,0)
}
function eval_115(p1,p2,p3) {
    if(!checkParams(p3))   return 0;
    let result=p3;
    if(!checkParams(p1)||p1<70) return 0;
    if(checkParams(p2)) result=result-p2*2;
    return maxValue(result,0)
}
function eval_116(p1,p2,p3) {
    if(checkParamsNotTrue(p1)) return 0;
    if(!checkParams(p2,p3)) return 0;    
    let result=p3-p2;
    return maxValue(result,0)
}

/**************** 自建系统 ******************** */

function eval_117(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11) {
    if(checkParamsNotTrue(p9)) return 0;
    if(!checkParams(p1,p2,p3,p4,p5,p6,p7,p8,p10,p11)) return 0;
    let result=p11;
    result=result-p1*5-p2*5;
    if(checkParamsNotTrue(p3)) result=result-2;
    if(checkParamsNotTrue(p4)) result=result-2;
    if(checkParamsNotTrue(p5)) result=result-2;
    if(checkParamsNotTrue(p6)) result=result-10;
    result=result-p7*5-p8*5-p10*2;
    return maxValue(result,0)
}

function eval_118(p1,p2,p3,p4,p5,p6) {
    if(!checkParams(p6)) return 0;
    if(!checkParams(p1,p2,p3,p4,p5)) return 0;
    let result=p6;
    result=result-p1*0.5;
    if(checkParamsNotTrue(p2)) result=result-1;
    if(checkParamsNotTrue(p3)) result=result-2;
    if(checkParamsNotTrue(p4)) result=result-0;
    if(checkParamsNotTrue(p5)) result=result-1;
    return maxValue(result,0)
}
function eval_119(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10) {
    if(!checkParams(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10)) return 0;
    let result=p10;
    if(checkParamsNotTrue(p1)) result=result-0.5;
    if(checkParamsNotTrue(p2)) result=result-0.5;
    if(checkParamsNotTrue(p3)) result=result-0.5;
    result=result-p4*1-p5*1-p6*0.5-p7*1-p8*1-p9*0.5;
    return maxValue(result,0)
}
function eval_120(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10) {
    if(!checkParams(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10)) return 0;
    let result=p10;
    result=result-p1-p2-p3-p4-p5-p6-p7-p8-p9;
    return maxValue(result,0)
}